package by.bsuir.chess.events
{
	import by.bsuir.chess.vo.Piece;

	import flash.events.Event;
	import flash.geom.Point;

	public class PiecePositionEvent extends Event
	{
		public static const POSITION_CHANGE : String = "positionChange";
		
		public var oldPos:Point;
		public var newPos:Point;

		public function PiecePositionEvent(oldPos:Point, newPos:Point,type : String = POSITION_CHANGE, bubbles : Boolean = true,
										   cancelable : Boolean = true)
		{
			super(type, bubbles, cancelable);
			this.oldPos=oldPos;
			this.newPos=newPos;
		}
	}
}
